package com.itany.corejava.code07_面向对象.lianxi3;

/**
 * @author MissChen
 * @version 1.0
 * @date 2023 年11月07日 10:38
 */
public class Employee extends Role{
   private double salary;
   private static int id=1000;

    public Employee(String name, int age, String gender, double salary) {
        super(name, age, gender);
        this.salary = salary;
    }

    @Override
    public void show() {
        System.out.println("我是"+super.getName()+"、年龄是"+super.getAge()+"、性别是"+super.getGender()+"、工资是"+salary);
    }
    public void sing(){
        System.out.println(getName()+"，放声歌唱吧");
    }
}
